package generators;

import gamebackend.Block;

import java.util.Random;

public abstract class AbstractRandomGenerator extends AbstractGenerator implements BlockGenerator {
	private final Random my_random;
	private final double my_chance; 
	
	protected AbstractRandomGenerator(final Block the_block, Random the_random, double the_chance) {
		super(the_block);
		my_random = the_random;
		my_chance = the_chance;
	}
	protected Random getRandom() {
		return my_random;
	}
	protected double getChance() {
		return my_chance;
	}

}
